﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GKS.DataTypes.Math {
    // class to be built
    public class Real : INumber {
        #region variables
        private bool positive;
        private uint wholePart;
        private uint decimalPart;
        #endregion

        #region properties
        
        #endregion

        #region enums

        #endregion

        #region constructors
        public Real(uint whole, uint dec, bool isPositive = true) {
            wholePart = whole;
            decimalPart = dec;
            positive = isPositive;
        }

        public Real() : this(0, 0) { }
        #endregion

        #region methods
        public override string ToString() {
            return string.Format(
                "{0}{1}.{2}"
                , positive ? "" : "-"
                , wholePart
                , decimalPart);
        }
        #endregion
    }
}
